package com.whxy02.tolearn.app.beans;

//import javax.persistence.*;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 打卡信息表
 */

//@Entity
//@Table(name= "tb_card")
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_card")
public class Card implements Serializable {
//    @Id
//    @GeneratedValue(strategy = GenerationType.IDENTITY)

    @TableId(value = "card_id",type = IdType.AUTO)
    private Integer cardId;
    private Integer userId=1;
    private Integer totalCount=0;                //总打卡次数
    private Integer successionCount=0;           //连续打卡次数
    private Integer point=0;                      //积分


}
